#include "pch.h"
#include "CCefBrowserApp.h"

CCefBrowserApp::CCefBrowserApp(void) {}
CCefBrowserApp::~CCefBrowserApp(void) {}

void CCefBrowserApp::OnWebKitInitialized()
{
}

CefRefPtr<CefBrowserProcessHandler> CCefBrowserApp::GetBrowserProcessHandler() {return this;}
void CCefBrowserApp::OnContextInitialized() {


	std::string extensionCode =

		"var test;"

		"if (!test)"

		" test = {};"

		"(function() {"

		" test.myval = 'My Value!';"

		"})();";



	CefRegisterExtension("v8/test", extensionCode, NULL);
}

